package com.ihrm.employee.service.api;

import com.github.pagehelper.PageInfo;
import com.ihrm.domain.employee.EmployeeArchive;

import java.util.List;
import java.util.Map;

public interface ArchiveService {

    void save(EmployeeArchive archive);

    EmployeeArchive findLast(String companyId, String month);

    List<EmployeeArchive> findAll(Integer page, Integer pagesize, String year, String companyId);

    Long countAll(String year, String companyId);

    PageInfo<EmployeeArchive> findSearch(Map<String, Object> map, int page, int size);

    List<EmployeeArchive> createSpecification(Map searchMap);

}
